<HTML>
<HEAD>
<TITLE>Admin</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
<script type='text/javascript' src="../js/shijian.js" charset="gb2312"></script>
<script language="javascript" src="/js/city.js" type="text/javascript" charset="gb2312"></script>
<script language="javascript" src="/member/js/catalog.js" type="text/javascript" charset="gb2312"></script>
</HEAD>
<BODY>
<?php
include('../../inc/global.inc');
include("../islogin.php");
$url=$_SERVER['HTTP_REFERER'];
?>
<?php
if($_POST['act_xg']){

$p_rs=@mysql_query("select * from city where id='$_POST[c_provinces]' and city_id=0");
$p_row=@mysql_fetch_array($p_rs);
$c_rs=@mysql_query("select * from city where id='$_POST[c_city]' and city_id>0");
$c_row=@mysql_fetch_array($c_rs);
$c_rs2=@mysql_query("select * from city where id='$_POST[c_diqu]' and city_id>0");
$c_row2=@mysql_fetch_array($c_rs2);
$m_diqu=($_POST[c_diqu])?$_POST[c_diqu]:0;

$c_rs_1=mysql_query("select * from catalog where id='$_POST[catalog_1]'");
$c_row_1=mysql_fetch_array($c_rs_1);
$c_rs_2=mysql_query("select * from catalog where id='$_POST[catalog_2]'");
$c_row_2=mysql_fetch_array($c_rs_2);
$c_rs_3=mysql_query("select * from catalog where id='$_POST[catalog_3]'");
$c_row_3=mysql_fetch_array($c_rs_3);
$p_list_id=explode("@",$_POST[p_list]);
$catalog_1=($_POST[catalog_1])?$_POST[catalog_1]:0;
$catalog_2=($_POST[catalog_2])?$_POST[catalog_2]:0;
$catalog_3=($_POST[catalog_3])?$_POST[catalog_3]:0;

$m_sh=($_POST[m_sh])?$_POST[m_sh]:0;
$a_sh=($_POST[a_sh])?$_POST[a_sh]:0;
$m_tj=($_POST[m_tj])?$_POST[m_tj]:0;
$m_top_tj=($_POST[m_top_tj])?$_POST[m_top_tj]:0;
$ispay=($_POST[ispay])?$_POST[ispay]:0;
$website=($_POST[website])?$_POST[website]:0;
$is_have_top=$_POST[is_have_top]?$_POST[is_have_top]:0;
$jd_is=($_POST[jd_is])?$_POST[jd_is]:0;
$jd_tj=$_POST[jd_tj]?$_POST[jd_tj]:0;
$m_rz_ok=$_POST[m_rz_ok]?$_POST[m_rz_ok]:0;
if(strlen($_POST[m_psw])==19)
	 {
	 

	 @mysql_query("update member set m_type='$_POST[m_type]',m_pic='$_POST[m_pic]',catalog_id1='$catalog_1',catalog_1='$c_row_1[cat_name]',catalog_id2='$catalog_2',catalog_2='$c_row_2[cat_name]',catalog_id3='$catalog_3',catalog_3='$c_row_3[cat_name]',m_pro='$_POST[c_provinces]',m_city='$_POST[c_city]',pro='$p_row[city_name]',city='$c_row[city_name]',diqu='$c_row2[city_name]',m_diqu='$m_diqu',m_sex='$_POST[m_sex]',m_name='$_POST[m_name]',m_email='$_POST[m_email]',m_addre='$_POST[m_addre]',m_phone='$_POST[m_phone]',m_ts_tel='$_POST[m_ts_tel]',m_tel2='$_POST[m_tel2]',m_tel3='$_POST[m_tel3]',m_tel2_n='$_POST[m_tel2_n]',m_tel3_n='$_POST[m_tel3_n]',m_tel='$_POST[m_tel]',m_tel_n='$_POST[m_tel_n]',m_fax='$_POST[m_fax]',m_zip='$_POST[m_zip]',m_cname='$_POST[m_cname]',c_ceo='$_POST[c_ceo]',c_type='$_POST[c_type]',c_mode='$_POST[c_mode]',reg_capital='$_POST[reg_capital]',c_info='$_POST[c_info]',c_mainpro='$_POST[c_mainpro]',m_banner='$_POST[m_banner]',c_logo='$_POST[c_logo]',c_npeopele='$_POST[c_npeopele]',c_turnover='$_POST[c_turnover]',template='$_POST[template]',website='$website',cer_img='$_POST[picture]',m_sh='$m_sh',a_sh='$a_sh',m_endtime='$_POST[m_endtime]',ispay='$ispay',m_cl='1',m_top_tj='$m_top_tj',m_tj='$m_tj',m_qq='$_POST[m_qq]',m_title='$_POST[m_title]',m_title2='$_POST[m_title2]',m_description='$_POST[m_description]',m_keywords='$_POST[m_keywords]',is_have_top='$is_have_top',jd_is='$jd_is',jd_tj='$jd_tj',m_rz_img='$_POST[m_rz_img]',m_rz_shuoming='$_POST[m_rz_shuoming]',m_rz_ok='$m_rz_ok'  where id='".$_POST['iid']."'");
	 
	 
	 }else{
	 $psw=substr(md5($_POST[m_psw]),7,19);
	 @mysql_query("update member set m_psw='$psw',m_type='$_POST[m_type]',m_pic='$_POST[m_pic]',catalog_id1='$catalog_1',catalog_1='$c_row_1[cat_name]',catalog_id2='$catalog_2',catalog_2='$c_row_2[cat_name]',catalog_id3='$catalog_3',catalog_3='$c_row_3[cat_name]',m_pro='$_POST[c_provinces]',m_city='$_POST[c_city]',pro='$p_row[city_name]',city='$c_row[city_name]',diqu='$c_row2[city_name]',m_diqu='$m_diqu',m_sex='$_POST[m_sex]',m_name='$_POST[m_name]',m_email='$_POST[m_email]',m_addre='$_POST[m_addre]',m_phone='$_POST[m_phone]',m_ts_tel='$_POST[m_ts_tel]',m_tel2='$_POST[m_tel2]',m_tel3='$_POST[m_tel3]',m_tel2_n='$_POST[m_tel2_n]',m_tel3_n='$_POST[m_tel3_n]',m_tel='$_POST[m_tel]',m_tel_n='$_POST[m_tel_n]',m_fax='$_POST[m_fax]',m_zip='$_POST[m_zip]',m_cname='$_POST[m_cname]',c_ceo='$_POST[c_ceo]',c_type='$_POST[c_type]',c_mode='$_POST[c_mode]',reg_capital='$_POST[reg_capital]',c_info='$_POST[c_info]',c_mainpro='$_POST[c_mainpro]',m_banner='$_POST[m_banner]',c_logo='$_POST[c_logo]',c_npeopele='$_POST[c_npeopele]',c_turnover='$_POST[c_turnover]',template='$_POST[template]',website='$website',cer_img='$_POST[picture]',m_sh='$m_sh',a_sh='$a_sh'm_endtime='$_POST[m_endtime]',ispay='$ispay',m_cl='1',m_top_tj='$m_top_tj',m_tj='$m_tj',m_qq='$_POST[m_qq]',m_title='$_POST[m_title]',m_title2='$_POST[m_title2]',m_description='$_POST[m_description]',m_keywords='$_POST[m_keywords]',is_have_top='$is_have_top',jd_is='$jd_is',jd_tj='$jd_tj',m_rz_img='$_POST[m_rz_img]',m_rz_shuoming='$_POST[m_rz_shuoming]',m_rz_ok='$m_rz_ok'  where id='".$_POST['iid']."'");
	 }

if($m_sh==0)
{
	$sql = 'update product set p_sh=0 where member_id='.$_POST['iid'];
	mysql_query($sql);
}
	 
echo "<script>alert('修改成功');location='".$_POST['urls']."'</script>";


}
?>
  <table width="780" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
    <tr>
      <td height="25" bgcolor="#EEEEF9" style="padding-left:5px;">会员信息&nbsp;&nbsp;<a href="javascript:history.go(-1)">Back</a></td>
    </tr>
</table>
<?php
$sql="select * from member where id=".$_GET['xg_id'];
$rs=mysql_query($sql);
$row=mysql_fetch_array($rs)
?>
<table cellspacing="1" cellpadding="0" width="780" align="center" bgcolor="#000000" border="0">
  <form action="index_modify.php" method="post" name="form1"  onSubmit="return checktime()">
      <tr>
        <td align="center" bgcolor="#8DA8CF" colspan="2" height="45">会员信息</td>
      </tr>
	  <tr>
        <td align="center" width="150" bgcolor="#f0f0f0" height="25">会员编号</td>
        <td width="627" bgcolor="#ffffff" style="padding-left:3px;"><?=$row['id']?></td>
      </tr>
      <tr>
        <td align="center" width="150" bgcolor="#f0f0f0" height="25">会员头像</td>
        <td width="627" bgcolor="#ffffff" style="padding-left:3px;">
		<?php if($row[m_pic]){?><img src="http://www.sandib2b.cn/upfile/<?=$row['m_pic']?>" width="120" height="120" align="absmiddle"><?php }else{?>
		<img src="/images/default_contact_photo_120.gif" align="absmiddle"><?php }?>
		<input name="m_pic" type="text" value="<?=$row['m_pic']?>" size="40"></td>
      </tr>
	  <tr>
        <td align="center" width="150" bgcolor="#f0f0f0" height="25">会员帐号<input type="hidden" name="iid" value="<?=$row['id']?>"></td>
        <td width="627" bgcolor="#ffffff" style="padding-left:3px;"><input name="m_user" type="text" value="<?=$row['m_user']?>" size="20">(禁止修改)</td>
      </tr>
	<tr>
        <td align="center" bgcolor="#f0f0f0" height="25">密码</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_psw" type="password" id="m_psw" value="<?=$row['m_psw']?>" size="21"/></td>
    </tr>
      <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">城市选择</td>
		<td bgcolor="#FFFFFF" style="padding-left:3px;"><select name="c_provinces" onChange="changecity(document.form1.c_provinces.options[document.form1.c_provinces.selectedIndex].value)">
<option value="">--选择省份--</option>    
<?    
$rs01=@mysql_query("select * from city where city_id=0 order by order_name asc");    
while($res=@mysql_fetch_array($rs01)){    
?>    
<option value="<?=$res['id']?>" <?php if($row['m_pro']==$res['id']){echo "selected";}?>><?=$res['city_name']?></option> 
<? } ?>    
</select>     
<select name="c_city" id="c_city" onChange="changecity2(document.form1.c_city.options[document.form1.c_city.selectedIndex].value)">                    
  <option value="">--选择城市--</option>
  			<?php
			$rs2=mysql_query("select * from city where city_id=".$row['m_pro']." order by id asc");
			while($row2=mysql_fetch_array($rs2)){
			?>
			<option value="<?=$row2['id']?>" <?php if($row['m_city']==$row2['id']){echo "selected";}?>><?=$row2['city_name']?></option>
			<?php
			}?>  
</select>
	   <select name="c_diqu" id="c_diqu">
            <option value="">--选择地区--</option>
			<?php
			$rs3=mysql_query("select * from city where city_id=".$row['m_city']." order by id asc");
			while($row3=mysql_fetch_array($rs3)){
			?>
			<option value="<?=$row3['id']?>" <?php if($row['m_diqu']==$row3['id']){echo "selected";}?>><?=$row3[city_name]?></option>
			<?php
			}?> 
       </select></td>
	  </tr>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">联系人姓名</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><SELECT name="m_sex">
          <OPTION value="先生" <?php if($row['m_sex']=="先生"){echo "selected";}?>>先生</OPTION>
          <OPTION value="女士" <?php if($row['m_sex']=="女士"){echo "selected";}?>>女士</OPTION>
          <OPTION value="小姐" <?php if($row['m_sex']=="小姐"){echo "selected";}?>>小姐</OPTION>
        </SELECT>&nbsp;<input type="text" size="15" name="m_name" value="<?=$row['m_name']?>"/></td>
      </tr>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">联系人邮箱</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_email" type="text" value="<?=$row['m_email']?>" size="35"></td>
      </tr>
      <tr>
        <td align="center" bgcolor="#f0f0f0" height="25">联系地址</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_addre" type="text" value="<?=$row['m_addre']?>" size="80"></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">免费电话</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_ts_tel" type="text" value="<?=$row['m_ts_tel']?>" size="20"/></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">联系电话</td>
        <td bgcolor="#ffffff" style="padding-left:3px;">
		<input name="m_tel" type="text" value="<?=$row['m_tel']?>" size="20"/>&nbsp;&nbsp;<input name="m_tel_n" type="text" value="<?=$row[m_tel_n]?>" size="15"/><br>
		<input name="m_tel2" type="text" value="<?=$row['m_tel2']?>" size="20"/>&nbsp;&nbsp;<input name="m_tel2_n" type="text" value="<?=$row['m_tel2_n']?>" size="15"/>
		<br>
        <input name="m_tel3" type="text" value="<?=$row['m_tel3']?>" size="20"/>&nbsp;&nbsp;<input name="m_tel3_n" type="text" value="<?=$row['m_tel3_n']?>" size="15"/>
</td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">传真号码</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_fax" type="text" value="<?=$row[m_fax]?>" size="20"/></td>
      </tr>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">手机</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_phone" type="text" value="<?=$row['m_phone']?>" size="20"></td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">邮编</td>
	    <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_zip" type="text" size="8" maxlength="10" value="<?=$row['m_zip']?>"></td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">在线联系方式</td>
	    <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_qq" type="text" size="20" value="<?=$row['m_qq']?>"></td>
      </tr>
      <tr>
        <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">企业信息</td>
      </tr>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">公司名称</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_cname" type="text" value="<?=$row['m_cname']?>" size="40"></td>
      </tr>
  <TR>
    <TD align="center" bgColor="#f0f0f0" height="25">公司目录</TD>
    <TD bgColor="#f9f9f9" style="padding-left:3px;"><select name="catalog_1" onChange="changelocation(document.form1.catalog_1.options[document.form1.catalog_1.selectedIndex].value)">
<option value="">--一级分类--</option>   
<?php
$rrs=mysql_query("select * from catalog where cat_id=0");    
while($rrow=mysql_fetch_array($rrs)){   
?>     
<option value="<?=$rrow[id]?>" <?php if($row[catalog_id1]==$rrow[id]){echo "selected";}?>><?=$rrow[cat_name]?></option>   
 <?php }?></select>-<select name="catalog_2" onFocus="changelocation(document.form1.catalog_1.options[document.form1.catalog_1.selectedIndex].value)">
					  <option value="0">--二级分类--</option>
					  <?php 
					    $rrs2=mysql_query("select * from catalog where id='".$row['catalog_id2']."'");
						while($rrow2=mysql_fetch_array($rrs2)){
					  ?><option value="<?=$rrow2['id']?>" selected><?=$rrow2['cat_name']?></option>
					  <?php }?>
                      </select>-<select name="catalog_3" onFocus="changelocation2(document.form1.catalog_2.options[document.form1.catalog_2.selectedIndex].value)">   
                        <option   value="0"   selected>--三级分类--</option>
						<?php 
					    $rrs2=mysql_query("select * from catalog where id='".$row['catalog_id3']."'");
						while($rrow2=mysql_fetch_array($rrs2)){
					  ?><option value="<?=$rrow2['id']?>" selected><?=$rrow2['cat_name']?></option>
					  <?php }?>
                      </select></TD>
  </TR>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">企业法人</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="c_ceo" type="text" value="<?=$row[c_ceo]?>" size="20"></td>
      </tr>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">企业类型</td>
        <td bgcolor="#ffffff" style="padding-left:3px;">
		<select name="c_type" id="c_type">
		   <option value="">选择企业类型</option>
		   <option value="有限责任公司" <?php if($row[c_type]=="有限责任公司"){echo "selected";}?>>有限责任公司</option>
		   <option value="股份有限公司" <?php if($row[c_type]=="股份有限公司"){echo "selected";}?>>股份有限公司</option>
		   <option value="中外合资企业" <?php if($row[c_type]=="中外合资企业"){echo "selected";}?>>中外合资企业</option>
		   <option value="中外合作企业" <?php if($row[c_type]=="中外合作企业"){echo "selected";}?>>中外合作企业</option>
		   <option value="外商独资企业" <?php if($row[c_type]=="外商独资企业"){echo "selected";}?>>外商独资企业</option>
		   <option value="集体经营企业" <?php if($row[c_type]=="集体经营企业"){echo "selected";}?>>集体经营企业</option>
		   <option value="个体经营企业" <?php if($row[c_type]=="个体经营企业"){echo "selected";}?>>个体经营企业</option>
		</select></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">经营模式</td>
        <td bgcolor="#ffffff" style="padding-left:3px;">
		<select id="c_mode" name="c_mode">
          <option value="">请选择经营模式</option>
          <option value="生产型" <?php if($row[c_mode]=="生产型"){echo "selected";}?>>生产型</option>
          <option value="贸易型" <?php if($row[c_mode]=="贸易型"){echo "selected";}?>>贸易型</option>
          <option value="加工型" <?php if($row[c_mode]=="加工型"){echo "selected";}?>>加工型</option>
          <option value="经销批发" <?php if($row[c_mode]=="经销批发"){echo "selected";}?>>经销批发</option>
          <option value="生产、贸易" <?php if($row[c_mode]=="生产、贸易"){echo "selected";}?>>生产、贸易</option>
          <option value="生产、经销批发" <?php if($row[c_mode]=="生产、经销批发"){echo "selected";}?>>生产、经销批发</option>
		  <option value="商业型" <?php if($row[c_mode]=="商业型"){echo "selected";}?>>商业型</option>
        </select></td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">注册资金</td>
	    <td bgcolor="#ffffff" style="padding-left:3px;"><input name="reg_capital" type="text" size="20" maxlength="50" value="<?=$row[reg_capital]?>"></td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">公司简介</td>
	    <td bgcolor="#ffffff" style="padding-left:3px;"><textarea name="c_info" cols="70" rows="18"><?=$row[c_info]?></textarea></td>
      </tr>
	 <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">主要产品</td>
	    <td bgcolor="#ffffff" style="padding-left:3px;"><input name="c_mainpro" type="text" value="<?=$row[c_mainpro]?>" size="80" maxlength="500"></td>
    </tr>
      <tr>
        <td align="center" width="150" bgcolor="#f0f0f0" height="25">企业形象照片</td>
        <td width="627" bgcolor="#ffffff" style="padding-left:3px;">
		<?php if($row[m_banner]){?><img src="http://www.sandib2b.cn/upfile/<?=$row[m_banner]?>" width="270" height="180" align="absmiddle"><?php }?>
		<input name="m_banner" type="text" value="<?=$row[m_banner]?>" size="40"></td>
      </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">注册时间</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row['m_addtime']?></td>
    </tr>
 <tr>
	   <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">网站配置</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">网站logo</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><?php if($row[c_logo]){?><img src="http://www.sandib2b.cn/upfile/<?=$row[c_logo]?>" border="0" width="223" height="65"><br>
	     <?php }?>
	     <input name="c_logo" type="text" value="<?=$row[c_logo]?>" size="40"></td>
	 </tr>
	  <tr>
	  <td height="25" align="center" bgcolor="#f0f0f0">公司员工数</td>
	  <td bgcolor="#ffffff" style="padding-left:3px;">
	  <select id="c_npeopele" name="c_npeopele">
	      <option value="">请选择公司员工数</option>
          <option value="20人以下" <?php if($row[c_npeopele]=="20人以下"){echo "selected";}?>>20人以下</option>
          <option value="20人以下" <?php if($row[c_npeopele]=="20人以下"){echo "selected";}?>>20人以下</option>
          <option value="20-100人" <?php if($row[c_npeopele]=="20-100人"){echo "selected";}?>>20-100人</option>
          <option value="100-500人" <?php if($row[c_npeopele]=="100-500人"){echo "selected";}?>>100-500人</option>
          <option value="500-1000人" <?php if($row[c_npeopele]=="500-1000人"){echo "selected";}?>>500-1000人</option>
          <option value="1000人以上" <?php if($row[c_npeopele]=="1000人以上"){echo "selected";}?>>1000人以上</option>
        </select></td>
	  </tr>
	  <tr>
	  <td height="25" align="center" bgcolor="#f0f0f0">年营业额</td>
	  <td bgcolor="#ffffff" style="padding-left:3px;">
	  <select name="c_turnover">
		 <option value="">--请选择年营业额--</option>
		 <option value="50万以下" <?php if($row[c_turnover]=="50万以下"){echo "selected";}?>>50万以下</option>
		 <option value="50万-500万" <?php if($row[c_turnover]=="50万-500万"){echo "selected";}?>>50万-500万</option>
		 <option value="500万-3000万" <?php if($row[c_turnover]=="500万-3000万"){echo "selected";}?>>500万-3000万</option>
		<option value="3000万以上" <?php if($row[c_turnover]=="3000万以上"){echo "selected";}?>>3000万以上</option>
	</select></td>
	  </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">会员认证</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><?php if($row[m_rz_img]){?><img src="http://www.sandib2b.cn/upfile/<?=$row[m_rz_img]?>" border="0" width="500" height="400"><br>
	     <?php }?>
       <input name="m_rz_img" type="text" value="<?=$row[m_rz_img]?>" size="40"></td>
	 </tr>	
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">认证图片是否符合要求</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="m_rz_ok" value="1" <?php if($row[m_rz_ok]==1){echo "checked";}?>>是<input type="radio" name="m_rz_ok" value="0" <?php if($row[m_rz_ok]==0){echo "checked";}?>>否</td>
    </tr>	 
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">不通过理由</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input name="m_rz_shuoming" type="text" value="<?=$row[m_rz_shuoming]?>" size="40"></td>
	 </tr>		 
	 <tr>
	   <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">管理员处理</td>
    </tr>
	  <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">网站模板</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;">
	   <select name="template">
	   <option value="1">--选择模板--</option>
	   <?php
	   $t_rs=@mysql_query("select * from template order by id asc");
	   while($t_row=@mysql_fetch_array($t_rs)){
	   ?>
	      <option value="<?=$t_row[t_id]?>" <?php if($row[template]==$t_row[t_id]){echo "selected";}?>><?=$t_row[t_name]?></option>
		  <?php }?>
	   </select></td></tr>
	   <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">钻石会员认证图片</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input name="picture" type="text" id="picture" value="<?=$row[cer_img]?>" size="40">
	   &nbsp;&nbsp;
	   <input name="button" type="button" onClick="window.open ('../upfile.php', 'newwindow', 'height=50, width=400, top=250, left=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')" value="上传图片">
	   (702*929)</td>
	  </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">开通二级域名</td>
	    <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="website" value="1" <?php if($row[website]==1){echo "checked";}?>>是&nbsp;<input type="radio" name="website" value="0" <?php if($row[website]==0){echo "checked";}?>>否</td>
      </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">审核通过</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="m_sh" value="1" <?php if($row[m_sh]==1){echo "checked";}?>>
	   是
	     <input type="radio" name="m_sh" value="0" <?php if($row[m_sh]==0){echo "checked";}?>>
	     否&nbsp;&nbsp;<a href="mail.php?p_email=<?=$row['m_email']?>&p_user=<?=$row['m_user']?>" target="_blank">发送警告提醒邮件</a>&nbsp;&nbsp;<a href="xc_mail.php?p_email=<?=$row['m_email']?>" target="_blank">发邮件·三帝贸易网只要20元</a>
		 
		 允许发布产品：<input type="radio" name="a_sh" value="1" <?php if($row["a_sh"]==1){ ?>checked="checked" <?php }?>>是 &nbsp;&nbsp;<input type="radio" name="a_sh" value="0" <?php if($row["a_sh"]==0){ ?>checked="checked" <?php }?>>否
		 </td>
    </tr>
      <tr>
        <td align="center" bgcolor="#f0f0f0" height="25">会员级别</td>
        <td bgcolor="#ffffff" style="padding-left:3px;">
		<select name="m_type" id="m_type">
		   <option value="3" <?php if($row[m_type]=="3"){echo "selected";}?>>普通会员</option>
		   <option value="6" <?php if($row[m_type]=="6"){echo "selected";}?>>钻石会员</option>
		</select></td>
      </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">会员到期时间</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="text" name="m_endtime" value="<?=$row[m_endtime]?>" onClick="setDay(this);">
	   (默认时间不能为空)</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">商铺去除三帝logo</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="is_have_top" value="1" <?php if($row[is_have_top]==1){echo "checked";}?>>
	   是  <input type="radio" name="is_have_top" value="0" <?php if($row[is_have_top]==0){echo "checked";}?>>
	   否</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">是否技术推广</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="ispay" value="1" <?php if($row[ispay]==1){echo "checked";}?>>
	   是  <input type="radio" name="ispay" value="0" <?php if($row[ispay]==0){echo "checked";}?>>
	   否&nbsp;&nbsp;(注：选择推广主题下面的主题，副主题，描述，关键字都必须填写)</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">推广主题</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><textarea name="m_title" cols="60" rows="3"><?=$row[m_title]?></textarea>限制200字</td>
    </tr>
	  <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">推广副主题</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><textarea name="m_title2" cols="60" rows="3"><?=$row[m_title2]?></textarea>限制200字</td>
      </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">推广描述</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><textarea name="m_description" cols="60" rows="6"><?=$row[m_description]?></textarea>限制500字</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">推广关键字</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><textarea name="m_keywords" cols="60" rows="3"><?=$row[m_keywords]?></textarea>限制200字</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">首页推荐</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="m_top_tj" value="1" <?php if($row[m_top_tj]==1){echo "checked";}?>>
	   是  <input type="radio" name="m_top_tj" value="0" <?php if($row[m_top_tj]==0){echo "checked";}?>>
	   否</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">非首页推荐</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="m_tj" value="1" <?php if($row[m_tj]==1){echo "checked";}?>>
	   是  <input type="radio" name="m_tj" value="0" <?php if($row[m_tj]==0){echo "checked";}?>>
	   否</td>
    </tr>
	  
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">借贷</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="jd_is" value="1" <?php if($row[jd_is]==1){echo "checked";}?>>
	   是  <input type="radio" name="jd_is" value="0" <?php if($row[jd_is]==0){echo "checked";}?>>
	   否</td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">借贷推荐</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="radio" name="jd_tj" value="1" <?php if($row[jd_tj]==1){echo "checked";}?>>
	   是  <input type="radio" name="jd_tj" value="0" <?php if($row[jd_tj]==0){echo "checked";}?>>
	   否</td>
    </tr>	  
	  
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">&nbsp;</td><input type="hidden" name="urls" value="<?=$url?>">
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="submit" value="提交">
	   <input type="hidden" name="act_xg" value="ok"></td>
    </tr>
  </form>
</table>

</BODY>
</HTML>
<script language="javascript">
function $(id){
return document.getElementById(id);
}
function checktime(){
if($("m_endtime").value==""){
alert("到期时间不能为空，默认是注册时间，请选择注册时间");
$("m_endtime").focus();
return false;
}
}
</script>